package cn.iocoder.yudao.module.promotion.dal.mysql.quickcombinationactivity;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.promotion.dal.dataobject.quickcombinationactivity.QuickCombinationProductDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;

/**
 * 促销商品 Mapper
 *
 * @author HUIHUI
 */
@Mapper
public interface QuickCombinationProductMapper extends BaseMapperX<QuickCombinationProductDO> {

    default List<QuickCombinationProductDO> selectListByActivityIds(Collection<Long> ids) {
        return selectList(QuickCombinationProductDO::getActivityId, ids);
    }

    default List<QuickCombinationProductDO> selectListByActivityId(Long id){
        return selectList(QuickCombinationProductDO::getActivityId, id);
    }
}
